<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src='../jslib/angular.js/1.4.6/angular.min.js'></script>
</head>
<body>

<div data-ng-app="" data-ng-init="quantity=1;price=5">

    <h2>价格计算</h2>

    数量: <input type="number" ng-model="quantity">
    单价: <input type="number" ng-model="price">

    <p><b>总价:</b> {{quantity * price}}</p>

</div>

</body>
</html>